cd step8
minNotesLen=200;
awk -v minNotesLen=$minNotesLen '{
  if(flag==1 && $NF!~"\\*/" ){
      #print("!!!");
      content=content""$0      
    }
if($0~/experience:/){
   flag=1; 
   #print("###");
   content=content""substr($0,index($0,"experience:")+11)
   startLine=FNR;
}
if($NF~"\\*/"&&flag==1){
   endLine=FNR;
   #print("$$$");
   content=content""substr($0,1,index($0,"*/")-1)
   #printf("sss%s\n",content);
   gsub(" ","",content)
   #printf("s%s\n",content);
   len=length(content)
   if(len<minNotesLen&&flag==1){
       #printf("notes len:%d,from line %d to line:%d\n",len,startLine,endLine);
       print("请写下详细的实验结论与体会！");
}
if(len>=minNotesLen&&flag==1){
       #printf("notes len:%d,from line %d to line:%d\n",len,startLine,endLine);
       print("字数符合");
}
flag=0;
}
}' main.c
